package com.qiankunxu.aware;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

/**
 * @author : Hunter Huang
 * @since : 2023/12/16 11:15
 * {@literal : some description}
 */

@Component
public class Student implements BeanNameAware, BeanClassLoaderAware, BeanFactoryAware {
    @Override
    public void setBeanClassLoader(ClassLoader classLoader) {
        System.out.println("Student ... setBeanClassLoader:" + classLoader);

    }

    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        System.out.println("Student ... setBeanFactory:" + beanFactory);
    }

    @Override
    public void setBeanName(String name) {
        System.out.println("Student ... setBeanName:" + name);
    }
}
